/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fiap.server;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

/**
 *
 * @author rm65556
 */
@WebServlet(urlPatterns="/processarlogin")
public class ProcessarLogin extends HttpServlet{ 
    
    @Override
    protected void doPost(HttpServletRequest req,HttpServletResponse resp)throws ServletException, IOException{
    String usuario = req.getParameter("usuario");
    String pwd = req.getParameter("senha");
    
    //JPA
    
    PrintWriter writer = resp.getWriter();
    writer.println("Ola " + usuario);
    writer.println("Neste momento a base nao esta disponivel!");
    writer.println("Tente mais tarde!");
    
    
    }
}
